<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript" src="js/axios-0.18.0.js"></script>
<script type="text/javascript">
    //1.准备json数据
    let json = {"username": "李德胜", "password": "1234"};
    //2.向后端发送异步请求
    axios.post("/fastJsonDemo100Servlet",json)
         .then(resp=>{
             // 先在浏览器控制台抓个包看看服务器端响应来的数据是什么样子
             console.log(resp.data);
         }
         );
</script>
</body>
</html>